<?php
	$db = mysql_connect('50.63.104.82', 'bisondubart', 'Ete_2012') or die('could not connect: ' . mysql_error());
	mysql_select_db('bisondubart') or die ('could no connect to DB');

	$name = mysql_real_escape_string($_GET['name'], $db);
	$level = mysql_real_escape_string($_GET['level'], $db);
	$score = mysql_real_escape_string($_GET['score'], $db);
	$hash = $_GET['hash'];
	
	$secretKey="quesserquiss___pass";
	
	$real_hash = md5($name . $level . $score . $secretKey);
	if($hash == $real_hash)
	{
		$query = "insert into table_ubart values (NULL, '$name', '$level', '$score');";
		$result = mysql_query($query) or die ('Query Failed' . mysql_error());
	}
?>